package com.to.aboomy.bannersample;

import com.to.aboomy.bannersample.util.BezierUtil;
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import ohos.agp.utils.Point;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ExampleOhosTest {
    /**
     * testBundleName
     */
    @Test
    public void testBundleName() {
        final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
        Point point = null;
        Point point0 = new Point(0,200);
        Point point1 = new Point(200,200);
        Point point2 = new Point(200,0);
        point = BezierUtil.calculateBezierPointForQuadratic(0.5F,point0,point1,point2);
        assertEquals(point.getPointX(),point.getPointY(),200);
    }
}


